package com.example.management.oa.dao

import com.example.management.common.domain.NotifyDTO
import com.example.management.oa.domain.NotifyDO
import org.apache.ibatis.annotations.Mapper

@Mapper
interface NotifyDao {

    operator fun get(id: Long?): NotifyDO

    fun list(map: Map<String, Any>): List<NotifyDO>

    fun count(map: Map<String, Any>): Int

    fun save(notify: NotifyDO): Int

    fun update(notify: NotifyDO): Int

    fun remove(id: Long?): Int

    fun batchRemove(ids: Array<Long>): Int

    fun listByIds(ids: Array<Long>): List<NotifyDO>

    fun countDTO(map: Map<String, Any>): Int

    fun listDTO(map: Map<String, Any>): List<NotifyDTO>
}